package com.yuanfeng.business.dto;

import com.yuanfeng.commoms.constant.CommonType;
import com.yuanfeng.commoms.util.querypage.PageHelper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 店铺分类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopClassDTO extends PageHelper {

    /**
     * 店铺分类id
     */
    private Integer shopClassId;

    /**
     * 店铺分类名称
     */
    private String shopClassName;

    /**
     * 默认普通店铺
     */
    private Integer shopType = CommonType.ShopType.COMMON_SHOP.getCode();

    public Integer getShopType() {
        return (null == shopType || shopType.intValue() == 0) ? CommonType.ShopType.COMMON_SHOP.getCode() : shopType;
    }
}
